<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let num = 19
        //函数表达式
        //高阶函数  函数的高级用法把函数当值来看
        let fn = function(){
            btn.onclick = function(){
                // A作为参数传递给函数B，A就作为回调函数

            }
        }
        function fn(){}
        setInterval(fn,1000)
        
    </script>
</body>
</html>